//
//  InitPoint.m
//  PokerReplayer
//
//  Created by 徐 庆 on 11-4-15.
//  Copyright 2011 Madjonr studio. All rights reserved.
//

#import "InitPoint.h"


@implementation InitPoint
@synthesize elmentPoint;

- (id)init{	
	self = [super init];
	if (self) {
		//ElementPoint *newElmentPoint = [[ElementPoint alloc] init];
		self.elmentPoint = [[ElementPoint alloc] init];
		self.elmentPoint.firstCallLordCard = CGPointMake(61.0, 18.0);
		self.elmentPoint.deskPoint = CGPointMake(12.0, 12.0);
		self.elmentPoint.hindCard = CGPointMake(397.0, 35.0);
		self.elmentPoint.gameOver = CGPointMake(345.0, 300.0);
		self.elmentPoint.gameOverInfo = CGPointMake(12.0, 12.0);
		self.elmentPoint.overName = CGPointMake(12.0, 12.0);
		self.elmentPoint.overPoint = CGPointMake(12.0, 12.0);
		
		//左边玩家
		PlayerPoint *newPlayerPoint0 = [[PlayerPoint alloc] init];
		newPlayerPoint0.dizhu = CGPointMake(12.0, 12.0);	
		newPlayerPoint0.light = CGPointMake(12.0, 12.0);	
		newPlayerPoint0.playerHandCardPoint = CGPointMake(120.0, 12.0);	
		newPlayerPoint0.playerNamePoint = CGPointMake(12.0, 12.0);	
		newPlayerPoint0.playerOutedCardPoint = CGPointMake(205.0, 12.0);	
		newPlayerPoint0.playerPhotoPoint = CGPointMake(12.0, 12.0);	
		newPlayerPoint0.remnantPoint = CGPointMake(61.0, 414.0);	
		newPlayerPoint0.playerState = CGPointMake(205.0, 374.0);	
		[self.elmentPoint.playerPointList addObject:newPlayerPoint0];
		
		//下面玩家
		PlayerPoint *newPlayerPoint1 = [[PlayerPoint alloc] init];
		newPlayerPoint1.dizhu = CGPointMake(12.0, 12.0);	
		newPlayerPoint1.light = CGPointMake(12.0, 12.0);	
		newPlayerPoint1.playerHandCardPoint = CGPointMake(400.0, 600.0);	
		newPlayerPoint1.playerNamePoint = CGPointMake(450.0, 450.0);	
		newPlayerPoint1.playerOutedCardPoint = CGPointMake(450.0, 500.0);	
		newPlayerPoint1.playerPhotoPoint = CGPointMake(12.0, 12.0);	
		newPlayerPoint1.remnantPoint = CGPointMake(217.0, 680.0);	
		newPlayerPoint1.playerState = CGPointMake(481.0, 500.0);	
		[elmentPoint.playerPointList addObject:newPlayerPoint1];
		
		//右边玩家
		PlayerPoint *newPlayerPoint2 = [[PlayerPoint alloc] init];
		newPlayerPoint2.dizhu = CGPointMake(12.0, 12.0);	
		newPlayerPoint2.light = CGPointMake(12.0, 12.0);	
		newPlayerPoint2.playerHandCardPoint = CGPointMake(834.0, 12.0);	
		newPlayerPoint2.playerNamePoint = CGPointMake(815.0, 12.0);	
		newPlayerPoint2.playerOutedCardPoint = CGPointMake(749.0, 12.0);	
		newPlayerPoint2.playerPhotoPoint = CGPointMake(12.0, 12.0);	
		newPlayerPoint2.remnantPoint = CGPointMake(943.0, 414.0);	
		newPlayerPoint2.playerState = CGPointMake(756.0, 374.0);	
		[elmentPoint.playerPointList addObject:newPlayerPoint2];
	}
	return self;
}

@end
